package com.antstorm.statistics.dao;

import com.antstorm.statistics.entity.DeviceOnlineStatusRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DeviceOnlineStatusRecordDao extends JpaRepository<DeviceOnlineStatusRecord,Long> {
    DeviceOnlineStatusRecord findByDeviceIdAndOnlineStatus(String deviceId, boolean b);

    DeviceOnlineStatusRecord findByDeviceId(String deviceId);
}
